local sk__raomeng = fk.CreateSkill {

  name = "sk__raomeng",

  tags = { Skill.Compulsory, },

}



sk__raomeng:addEffect(fk.EventPhaseStart, {
  name = "sk__raomeng",
  anim_type = "control",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(sk__raomeng.name) and target ~= player and target.phase == Player.Judge and not target.dead and
      #target:getCardIds("j") == 0
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:doIndicate(player.id, {target.id})
    local judge = {
      who = target,
      reason = "indulgence",
      pattern = ".|.|spade,club,diamond",
    }
    room:judge(judge)
    local result = judge.card
    if result.suit ~= Card.Heart then
      target:skip(Player.Play)
    end
  end,
})

return sk__raomeng